home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Tutorial
/
Cookbook
/
07.PSWrap
/
MyView.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
482b
|
32 lines
/* Generated by Interface Builder */
#import "MyView.h"
#import <dpsclient/wraps.h>
#import <appkit/Control.h>
#import "line.h"
#import "circle.h"
@implementation MyView
- mySlider:sender
{
myFloat = [sender floatValue];
[self display];
return self;
}
- drawSelf:(NXRect*)r :(int)c
{
NXEraseRect(&bounds);
PSmoveto(300.0, 200.0);
drawCircle(50.0, 0.333);
PSsetgray(NX_BLACK);
PSsetlinewidth(5.0);
doLine(myFloat*1.3, myFloat);
return self;
}
@end